package com.hyh.eblog.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * 用户注册参数
 *
 * @author Summerday
 */
@Data
public class UserRegisterParam {

    @NotBlank(message = "用户名不能为空")
    private String username;

    @NotBlank(message = "邮箱不能为空")
    private String email;

    @NotBlank(message = "密码不能为空")
    private String password;

    @NotBlank(message = "第二次输入不能为空")
    private String repass;

    @NotBlank(message = "验证码不能为空")
    private String code;
}
